<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- <a href="http://www.bing.com" target="">提交</a> -->

    <form name="form" action="http://www.bing.com" target="_blank">
      <p>
        <input type="text" name="" id="" />
      </p>
      <p>
        <button type="submit">提交</button>
      </p>
    </form>
    <script>
      document.form.onsubmit = function (e) {
        e.preventDefault();
        // alert("hello");
        console.log("登陆");
      };
    </script>
  </body>
</html>
